package cn.edu.sjtu.se.dslab.service;

import java.util.List;

import cn.edu.sjtu.se.dslab.component.design.Button;

public interface IButtonService {
	
	public Button getButtonById(long id);

	public Button getButtonByName(String name);
	
	public Button getButtonByCode(String code, long projectId);
	
	public List<Button> getButtonList();
	
	public boolean addButton(Button button, long projectId);

	public Button updateButton(Button button);
	
	public boolean deleteButtonById(long buttonId);
	
	public List<Button> getButtonByProject(long projectId);

	public Button getButtonByProjectAndName(long projectId, String name);

}
